package com.gsi.webstore.platform.storefront.pipelet.availability;

public class AvailabilityIndicator
{
    
    private int ispuAvailable=0;
    private int stsAvailable=0;
    private int sfsAvailable=0;
    private int quantity=0;
    private String storefrontID = "";
    
    

    public AvailabilityIndicator(String storefrontCode, int numIspu, int numSts, int numSfs, Integer quantity)
    {
        this.ispuAvailable=numIspu;
        this.stsAvailable=numSts;
        this.sfsAvailable=numSfs;
        this.quantity=quantity;
    }


    public boolean isIspuAvailable()
    {
        return ispuAvailable>=quantity;
    }



    public boolean isStsAvailable()
    {
        return stsAvailable>=quantity;
    }



    public boolean isSfsAvailable()
    {
        return sfsAvailable>=quantity;
    }



    public String getStorefrontID()
    {
        return storefrontID;
    }


    public void setStorefrontID(String storefrontID)
    {
        this.storefrontID = storefrontID;
    }

    
    
    
}
